{% extends 'base.html' %}

<!-- base页 需要的变量 -->
{% set api_addr = tasks['api_addr'] %}
{% set pro_name_list = tasks['pro_name_list'] %}
{% set pro_num = tasks['pro_num'] %}

<!-- 自 定 义 CSS -->
<!-- 让 div class="jumbotron" 元素 显示手型 -->
{% block css %}
    <style>
        div.jumbotron {cursor: pointer}
    </style>

{% endblock %}


{% block content %}
    <div class="row clearfix">
    {% for i in range(pro_num) %}
         <div class="col-lg-4 col-md-4 col-sm-4">
            <div class="jumbotron" style="text-align: center">
                <h4> API项目 {{ i + 1 }} - {{ pro_name_list[i] }}</h4>
                <p><h4> 测 试 环 境 </h4></p>
                <p><a class="btn btn-primary btn-large" href="http://{{api_addr}}/case_page/{{ pro_name_list[i] }}">进 入</a></p>
            </div>
         </div>
    {% endfor %}
    </div>
{% endblock %}


{#{% block js %}#}
{#    <script>#}
{#        alert(document.cookie)#}
{#    </script>#}
{#{% endblock %}#}